home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2002 #4 / K-CD-4-2002.ISO / Empire Earth / EEDemo.exe / Disk1 / data.ssa / unit ai scripts_mobile weapons platform.tai < prev    next >
Encoding:
Text File  |  2001-09-29  |  751 b   |  41 lines

  1. //
  2. // Mobile Weapons Platform unit AI file
  3. //
  4. // Behaviors:
  5. //
  6. //        Keep an eye out for enemy units and accept movement commands, BUT DON'T pursue enemies.
  7. //
  8. //    Notes:
  9. //
  10. //    Known Problems:
  11. //
  12.  
  13.  
  14. #include("Generic Movement.tai")
  15.  
  16. // override to disallow attack move
  17. GetNextMoveWaypoint
  18. {
  19.     NextWaypointRetrieved true(Advance) false(TurnToUnitFacing)
  20. }
  21.  
  22. #include("Stationary Target Tracking.tai")
  23.  
  24. InitialAttackState
  25. {
  26.     AlwaysTrue true(TrackEnemyUnit)
  27. }
  28.  
  29. ReacquireGoal
  30. {
  31.     GoalIsUnit true(TrackEnemyUnit) false(Idle)
  32. }
  33.  
  34. // we shouldn't ever get into this state (should never try to attack a unit outside our range), but if we do, provide an exit
  35. CheckRange
  36. {
  37.     AlwaysTrue true(Idle)
  38. }
  39.  
  40. #include("Generic Death.tai")
  41.